package com.hp.common_api.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * 用于包装分页数据，从IPage获得数据，返回分页内容
 * 解决Feign不能传递IPage对象的问题
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PageResult<T> implements Serializable {

    private long total;
    private long current;
    private List<T> records;
    private long size;
    
}
